package com.couldsail.takeaway.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(description = "商品实体")
public class ProductsDTO {
    @ApiModelProperty("商品id")
    private String id;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("价格")
    private Double price;
    @ApiModelProperty("库存")
    private Integer stock;// 库存
    @ApiModelProperty("分类id")
    private Integer categoryId;
    @ApiModelProperty("商品图片地址")
    private String imageUrl;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("商品规格")
    private List<ProductSpecsDTO> specs;
}
